package com.ruoyi.yuwen.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 t_goods
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
@Data
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 产品名 */
    @Excel(name = "产品名")
    private String name;

    /** 价格（单位：分） */
    @Excel(name = "价格", readConverterExp = "单=位：分")
    private Long price;

    /** 产品图片 */
    @Excel(name = "产品图片")
    private String picture;

    /** 产品介绍 */
    @Excel(name = "产品介绍")
    private String introduce;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("picture", getPicture())
            .append("introduce", getIntroduce())
            .toString();
    }
}
